---
apiVersion: batch/v1
kind: Job
metadata:
  name: ks-upgrade
  namespace: kubesphere-system
  labels:
    job: ks-upgrade
    version: v3.3.1
spec:
  template:
    spec:
      serviceAccountName: ks-installer
      restartPolicy: OnFailure
      containers:
        - command:
            - ks-upgrade
            - --logtostderr
            - --v=4
          image: {{ ks_update_repo }}:{{ ks_update_tag }}
          imagePullPolicy: IfNotPresent
          name: ks-upgrade